package com.yafeng.logic.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yafeng.comonutils.ApiResult;
import com.yafeng.logic.entity.BaoRbacRole;
import com.yafeng.logic.vo.QueryRoleList;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author cn.classbao
 * @since 2020-08-19
 */
public interface BaoRbacRoleService extends IService<BaoRbacRole> {


    /**
     * 获取权限列表带查询
     * @param
     * @return
     */
    ApiResult queryRoleList(QueryRoleList queryRoleList);

    /**
     * 获取父权限列表
     * @return
     */
    ApiResult queryRolesFar();

    ApiResult createRoleItem(BaoRbacRole baoRbacRole);

    ApiResult delRoleItem(Integer[] ids);

    ApiResult updateRoleItem(BaoRbacRole baoRbacRole);

    ApiResult queryRoleItemByFid(Integer fid);

    ApiResult queryRoleTreeList();
}
